import App from './App'
import Vue from 'vue'

import uView from "uview-ui";
Vue.use(uView);

import { OssUrl,OriginOssUrl,ApiHost,downloadAppUrl } from '@/config/index.js'
Vue.prototype.$ossUrl = OssUrl
Vue.prototype.$originOssUrl = OriginOssUrl
Vue.prototype.$downloadAppUrl = downloadAppUrl

import bgDirective from '@/directive/bg.js'
Vue.directive('bg',bgDirective);


import tools from '@/utils/tools.js'
Vue.prototype.$tools=tools


import globalMixin from '@/mixins/globalMixin.js'
Vue.mixin(globalMixin);




Vue.config.productionTip = false
App.mpType = 'app'

// #ifdef H5
import VConsole from 'vconsole'
// if(ApiHost.startsWith('https://ant.weincloud')){
	// const vConsole = new VConsole()
	// Vue.use(vConsole)
// }
// #endif



import mediaImg from '@/components/media-img/media-img'
import mediaVideo from '@/components/media-video/media-video.vue'
import media3d from '@/components/media-3d/media-3d.vue'    
Vue.component('mediaImg',mediaImg);
Vue.component('mediaVideo',mediaVideo);
Vue.component('media3d',media3d);

import store from '@/store/index.js'

const app = new Vue({
    ...App,
	store
})

app.$mount()
